<!-- $Id: goods_info.htm 17126 2010-04-23 10:30:26Z liuhui $ -->
<?php echo $this->fetch('pageheader.htm'); ?>
<?php echo $this->smarty_insert_scripts(array('files'=>'../js/utils.js,selectzone.js,colorselector.js')); ?>
<link href="../js/calendar/calendar.css" rel="stylesheet" type="text/css" />
<?php if ($this->_var['warning']): ?>
<ul style="padding:0; margin: 0; list-style-type:none; color: #CC0000;">
  <li style="border: 1px solid #CC0000; background: #FFFFCC; padding: 10px; margin-bottom: 5px;" ><?php echo $this->_var['warning']; ?></li>
</ul>
<?php endif; ?>

<!-- start goods form -->
<div class="tab-div">
    <!-- tab bar -->
    <!-- tab body -->
    <div id="viewinfo-div">
      <form enctype="multipart/form-data" action="" method="post" name="theForm" onsubmit="return validate();">
        <!-- 最大文件限制 -->
        <input type="hidden" name="MAX_FILE_SIZE" value="2097152" />
        <!-- 通用信息 -->
       <div class="general-div">
	    <div id="tabbar-div" class="tabbar-div">
      <p>
        <span class="tab-front" id="general-tab"><?php echo $this->_var['lang']['tab_general']; ?></span>
      </p>
    </div>
	   <div ><img src="../<?php echo $this->_var['img_url']; ?>" border="0" width="350"  height="300"/></div>
	   <div class="base-detail" style="clear:both;"><ul>
	   <li><strong><?php echo $this->_var['lang']['lab_goods_name']; ?></strong><span><?php echo htmlspecialchars($this->_var['goods']['goods_name']); ?></span></li>
	   <li><strong><?php echo $this->_var['lang']['lab_goods_sn']; ?></strong><span><?php echo htmlspecialchars($this->_var['goods']['goods_sn']); ?></span></li>	   	   
	   <li><strong><?php echo $this->_var['lang']['lab_goods_sn2']; ?></strong><span><?php echo htmlspecialchars($this->_var['goods']['goods_sn2']); ?></span></li>
	   
	     <li><strong><?php echo $this->_var['lang']['lab_goods_cat']; ?></strong><span><?php echo $this->_var['goods']['cat_name']; ?></span></li>
		  <li><strong><?php echo $this->_var['lang']['lab_other_cat']; ?></strong>
		  <?php $_from = $this->_var['goods']['other_cat']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'cat_id');if (count($_from)):
    foreach ($_from AS $this->_var['key'] => $this->_var['cat_id']):
?> 
		  <span><?php echo $this->_var['goods']['other_cat_name'][$this->_var['cat_id']]; ?><<?php echo $this->_var['cat_id']; ?>></span>           
		 <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?></li>
		 <li><strong><?php echo $this->_var['lang']['lab_goods_brand']; ?></strong><span><?php echo htmlspecialchars($this->_var['goods']['brand_name']); ?></span></li>
		 <?php if ($this->_var['suppliers_exists'] == 1): ?><li><strong><?php echo $this->_var['lang']['label_suppliers']; ?></strong><span><?php echo $this->_var['goods']['suppliers_name']; ?></span> <a href="suppliers.php?act=view&id=<?php echo $this->_var['goods']['suppliers_id']; ?>" title="<?php echo $this->_var['lang']['view_suppliers_info']; ?>"> <img src="images/icon_view.gif" width="16" height="16" border="0" /></a> </li> <?php endif; ?>
	    <li><strong><?php echo $this->_var['lang']['lab_shop_price']; ?></strong><span><?php echo $this->_var['goods']['shop_price']; ?></span></li>
		<?php if ($this->_var['user_rank_list']): ?><li><strong><?php echo $this->_var['lang']['lab_user_price']; ?></strong><span> <?php $_from = $this->_var['user_rank_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'user_rank');if (count($_from)):
    foreach ($_from AS $this->_var['user_rank']):
?>
              <?php echo $this->_var['user_rank']['rank_name']; ?><span id="nrank_<?php echo $this->_var['user_rank']['rank_id']; ?>"></span><input type="text" id="rank_<?php echo $this->_var['user_rank']['rank_id']; ?>" name="user_price[]" value="<?php echo empty($this->_var['member_price_list'][$this->_var['user_rank']['rank_id']]) ? '-1' : $this->_var['member_price_list'][$this->_var['user_rank']['rank_id']]; ?>" onkeyup="if(parseInt(this.value)<-1){this.value='-1';};set_price_note(<?php echo $this->_var['user_rank']['rank_id']; ?>)" size="8" />
              <input type="hidden" name="user_rank[]" value="<?php echo $this->_var['user_rank']['rank_id']; ?>" />
              <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?></span></li><?php endif; ?>
	    <li><strong><?php echo $this->_var['lang']['product_model']; ?></strong><span><?php echo htmlspecialchars($this->_var['goods']['product_model']); ?></span></li>
		<li><strong><?php echo $this->_var['lang']['standard']; ?></strong><span><?php echo htmlspecialchars($this->_var['goods']['standard']); ?></span></li>
		<li><strong><?php echo $this->_var['lang']['technical_parameters']; ?></strong><span><?php echo htmlspecialchars($this->_var['goods']['technical_parameters']); ?></span></li>
		<li><strong><?php echo $this->_var['lang']['main_material']; ?></strong><span><?php echo htmlspecialchars($this->_var['goods']['main_material']); ?></span></li>
		<li><strong><?php echo $this->_var['lang']['cost']; ?></strong><span><?php echo $this->_var['goods']['cost']; ?></span></li>
		<li><strong><?php echo $this->_var['lang']['unit']; ?></strong><span><?php echo $this->_var['goods']['unit']; ?></span></li>
		<li><strong><?php echo $this->_var['lang']['categories_of_taxes']; ?></strong><span><?php echo htmlspecialchars($this->_var['goods']['categories_of_taxes']); ?></span></li>
		<li><strong><?php echo $this->_var['lang']['tax']; ?></strong><span><?php echo $this->_var['goods']['unit']; ?></span></li>
		<li><strong><?php echo $this->_var['lang']['min_sale_qty']; ?></strong><span><?php echo $this->_var['goods']['min_sale_qty']; ?></span></li>
		<li><strong><?php echo $this->_var['lang']['state_of_origin']; ?></strong><span><?php echo htmlspecialchars($this->_var['goods']['state_of_origin']); ?></span></li>
		<li><strong><?php echo $this->_var['lang']['production_cycle']; ?></strong><span><?php echo htmlspecialchars($this->_var['goods']['production_cycle']); ?></span></li>
		<li><strong><?php echo $this->_var['lang']['package_size']; ?></strong><span><?php echo htmlspecialchars($this->_var['goods']['package_size']); ?></span></li>	
		<li><strong><?php echo $this->_var['lang']['product_certification']; ?></strong><span><?php echo htmlspecialchars($this->_var['goods']['product_certification']); ?></span></li>	
		<li><strong><?php echo $this->_var['lang']['hscode']; ?></strong><span><?php echo htmlspecialchars($this->_var['goods']['hscode']); ?></span></li>		
		 </ul></div>
	<div style="clear:both; height:5px;"></div> 
	 <!-- 详细描述 -->	
	    <div class="m-detail">
	   <div id="detail-tab" class="tabbar-div"><P><span class="tab-front"><?php echo $this->_var['lang']['tab_detail']; ?></span><span style=" margin-right:5px; float:right;cursor:pointer;" onclick="show('detail-table');"><?php echo $this->_var['lang']['tab_show']; ?></span></P></div>
	   <div class="m-detailbody"><?php echo $this->_var['goods_desc']; ?></div>
	   </div>
	  <!-- 其他信息 -->
	   <div class="o-detail">
		<div id="mix-tab" class="tabbar-div"><p><span class="tab-front"><?php echo $this->_var['lang']['tab_mix']; ?></span><span style=" margin-right:5px; float:right;cursor:pointer;" onclick="show('mix-table');"><?php echo $this->_var['lang']['tab_show']; ?></span></p></div>
		<div class="o-detailbody"><ul>
		<?php if ($this->_var['code'] == ''): ?>
		<li><strong><?php echo $this->_var['lang']['lab_gross_weight']; ?></strong><span><?php echo $this->_var['goods']['gross_weight']; ?></span></li>
		<li><strong><?php echo $this->_var['lang']['lab_goods_weight']; ?></strong><span><?php echo $this->_var['goods']['goods_weight_by_unit']; ?></span></li>
		 <?php endif; ?>
		  <?php if ($this->_var['cfg']['use_storage']): ?>
		  <li><strong><?php echo $this->_var['lang']['lab_goods_number']; ?></strong><span><?php echo $this->_var['goods']['goods_number']; ?></span></li>
		  <li><strong><?php echo $this->_var['lang']['lab_warn_number']; ?></strong><span><?php echo $this->_var['goods']['warn_number']; ?></span></li>
		<?php endif; ?>
		<li><strong><?php echo $this->_var['lang']['lab_is_on_sale']; ?></strong><span><?php if ($this->_var['goods']['is_on_sale']): ?>√ <?php echo $this->_var['lang']['on_sale_desc']; ?><?php endif; ?></span></li>
		<li><strong><?php echo $this->_var['lang']['lab_is_alone_sale']; ?></strong><span><?php if ($this->_var['goods']['is_alone_sale']): ?>√<?php echo $this->_var['lang']['alone_sale']; ?><?php endif; ?></span></li>
	   <li><strong><?php echo $this->_var['lang']['lab_is_free_shipping']; ?></strong><span><?php if ($this->_var['goods']['is_shipping']): ?>√<?php echo $this->_var['lang']['free_shipping']; ?><?php endif; ?></span></li>
	   <li><strong><?php echo $this->_var['lang']['lab_keywords']; ?></strong><span><?php echo htmlspecialchars($this->_var['goods']['keywords']); ?></span></li>
	   <li><strong><?php echo $this->_var['lang']['lab_goods_brief']; ?></strong><span><?php echo htmlspecialchars($this->_var['goods']['goods_brief']); ?></span></li>
	    <li><strong><?php echo $this->_var['lang']['lab_seller_note']; ?></strong><span><?php echo $this->_var['goods']['seller_note']; ?></span></li>
		</ul></div></div>
	   </div>
	  <!-- 属性与规格 -->
		<div class="properties"><div id="properties-tab" class="tabbar-div"><p><span class="tab-front"><?php echo $this->_var['lang']['tab_properties']; ?></span><span style=" margin-right:5px; float:right;cursor:pointer;" onclick="show('properties-table');"><?php echo $this->_var['lang']['tab_show']; ?></span></p></div>
		<div class="propertiesbody"><ul>
		<!--<?php if ($this->_var['goods_type_list']): ?> <li><strong><?php echo $this->_var['lang']['lab_goods_type']; ?></strong><span> <?php echo $this->_var['goods_type_list']; ?></span></li>
		<?php endif; ?>-->
		<?php echo $this->_var['goods_attr_html']; ?>
		</ul></div></div>
        
        <div class="button-div">
          <input type="hidden" name="goods_id" value="<?php echo $this->_var['goods']['goods_id']; ?>" />
          <?php if ($this->_var['code'] != ''): ?>
          <input type="hidden" name="extension_code" value="<?php echo $this->_var['code']; ?>" />
          <?php endif; ?>
          <input type="submit" value="<?php echo $this->_var['lang']['print_submit']; ?>" class="button" disabled="true"/>
         </div>
        <input type="hidden" name="act" value="<?php echo $this->_var['form_act']; ?>" />
      </form>
    </div>
</div>

<?php echo $this->fetch('pagefooter.htm'); ?>
